RWTH - Mindstorms NXT Toolbox

COM_SetDefaultNXT

Sets a global default NXT handle that will be used by other functions if no handle is specified.

Contents

Syntax

COM_SetDefaultNXT(h)

Description

COM_SetDefaultNXT(h) sets the given handle h to the global NXT handle, which is used by all NXT-Functions per default if no other handle is specified. To create and open an NXT handle (Bluetooth or USB), the functions COM_OpenNXT and COM_OpenNXTEx can be used. To retrieve the global default handle user COM_GetDefaultNXT.

Example

   MyNXT = COM_OpenNXT('bluetooth.ini', 'check');
   COM_SetDefaultNXT(MyNXT);

See also

COM_GetDefaultNXT, COM_OpenNXT, COM_OpenNXTEx

Signature